<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>题库管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
            <div class="tit"><{$left_menu_min.menu}></div>
            <ul>
                <{foreach from=$left_menu_min.list item=item}>
                <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                <{/foreach}>
            </ul>
        </div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
				<div class="tit p-lr20">
				    <span><a href="/classes/volume_analys_detail/<{$volume_id}>/<{$type}>"><{if $type == 3}>作业<{else}>考试<{/if}>成绩表</a></span>
				    <span class="curr"><a href="/classes/volume_topic_analys_detail/<{$volume_id}>/<{$type}>"><{if $type == 3}>作业<{else}>考试<{/if}>分析</a></span>
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
				    <div class="mainContainer line-all">
				        <!--star tabMainCont-->
				        <div class="tabMainCont">
				            <!--star会员管理-->
				            <style>
								.fraction{font-size: 14px;}
								.fraction span{padding: 10px; height: 30px; line-height: 30px;}
								.fraction span i{color: red;}
							</style>
							<fieldset class="layui-elem-field fraction">
						  		<legend>组卷统计</legend>
						  		<div style="padding: 5px;">
						  			<p>
						  			
						  			<span>平均得分：<i><{$volume_analys_info.avg_fraction|default:0}>分</i></span>
						  			<span>最高得分：<i><{$volume_analys_info.max_fraction|default:0}>分</i></span>
						  			<span>最低得分：<i><{$volume_analys_info.min_fraction|default:0}>分</i></span>
						  			</p>
						  			<p>
						  				<span>试卷总分：<i><{$volume_analys_info.total_fraction|default:0}>分</i></span> 其中
						  				<{foreach from=$volume_analys_info.topic_type item=topic}>
						  				<span><{$topic.name}>：<i><{$topic.num}>个x<{$topic.fraction}>分 = <{$topic.num*$topic.fraction}>分</i></span>
						  				<{/foreach}>
						  			</p>
						  		</div>
					  		</fieldset>
							<fieldset class="layui-elem-field">
						  		<legend>筛选</legend>
					  			<div class="layui-field-box">
  									<form class="layui-form layui-form-pane1" method="post">
				                    	<div class="layui-form-item">
										  	<div class="layui-inline">
									    		<select name="topic_type">
						                        	<option value="0" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 0}>selected<{/if}>>全部题型</option>
						                            <option value="1" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 1}>selected<{/if}>>单选题</option>
						                            <option value="2" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 2}>selected<{/if}>>多选题</option>
						                            <option value="3" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 3}>selected<{/if}>>判断题</option>
						                            <option value="4" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 4}>selected<{/if}>>计算分析题</option>
						                            <option value="7" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 7}>selected<{/if}>>不定向选择题</option>
						                            <option value="8" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 8}>selected<{/if}>>名词解释</option>
						                            <option value="9" <{if isset($conditions['topic_type']) AND $conditions['topic_type'] == 9}>selected<{/if}>>简答题</option>
						                        </select>
									    	</div>

									    	<div class="layui-inline">
									    		<select name="chapter_id">
						                        	<option value="0" <{if isset($conditions['chapter_id']) AND $conditions['chapter_id'] == 0}>selected<{/if}>>全部章节</option>
						                            <{foreach from=$chapter_list.result item=chapter}>
						                            <{if $chapter.parent_id > 0}>
						                            <option value="<{$chapter.id}>" <{if isset($conditions['chapter_id']) AND $conditions['chapter_id'] == $chapter.id}>selected<{/if}>><{$chapter.title}></option>
						                            <{/if}>
						                            <{/foreach}>
						                        </select>
									    	</div>

									    	<div class="layui-inline">
									    		<button type="submit" class="layui-btn">搜索</button>
									    	</div>
								    	</div>
				                    </form>
		                    	</div>
							</fieldset>
		                	<form class="layui-form layui-form-pane1" method="post" delete_action="/topic/delete">
			                    <table class="layui-table" lay-even lay-skin="row">
			                        <thead>
									  	 <tr>
				                            <th>题干</th>
				                            <th>章节</th>
				                            <th>题型</th>
				                            <th>答题率</th>
				                            <th>正确率</th>
				                        </tr>
								  	</thead>
			                        <{foreach from=$topic_data key=key item=item}>
			                        	<tr>
			                        		<td class="tal not_lb"><{$item.subject_text}></td>
				                            <td class="tal not_lb"><{$item.title}></td>
				                            <td class="tal not_lb"><{if $item['type'] == 1}>单选题<{elseif $item['type'] == 2}>多选题<{elseif $item['type'] == 3}>判断题<{elseif $item['type'] == 4}>计算分析题<{elseif $item['type'] == 7}>不定向选择题<{elseif $item['type'] == 8}>名词解释<{elseif $item['type'] == 9}>简答题<{/if}></td>
				                            <td class="tal not_lb"><{if !empty($item.answer_num)}><{$item.answer_num}><{else}>0<{/if}>%</td>
				                            <td class="tal not_lb"><{if !empty($item.right_answer_num)}><{$item.right_answer_num}><{else}>0<{/if}>%</td>
				                        </tr>
			                        <{/foreach}>
			                    </table>
		                    </form>

			            </div>
			            <!--star会员管理-->
			        </div>
				        <!--end tabMainCont-->
		        </div>

		    </div>
		</div>

	</div>
	<{include file="footer.html"}>
</div>
</body>
</html>
